
// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue'
import ResourceManagement from '../views/ResourceManagement.vue'

const routes = [
    {
        path: '/',
        name: 'Login',
        component: Login,
        meta: { hideNavbar: true } // 标记登录页面隐藏导航栏
    },
    {
        path: '/resource-management',
        name: 'ResourceManagement',
        component: ResourceManagement
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router